# 定义一个员工父类
class Staff:
    def __init__(self, name, age):
        self.name = name
        self.age = age

    def eat(self):
        print(f'{self.age}岁的{self.name}吃泥巴')


# 定义一个讲师子类
class Lecturer(Staff):
    def paly(self):
        print('并且我游戏打的很菜')


# 定义一个班主任子类
class HeadMaster(Staff):
    def play(self, skill):
        self.skill = skill
        print('我打得也菜')


# 调用方法 继承
lecturer = Lecturer('汪林', '25')
lecturer.eat()
lecturer.paly()

headmaster = HeadMaster('君君', '24')
headmaster.eat()
headmaster.play('lol')
